// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
// import Vuex from 'vuex'
import App from './App'
import router from './router'
import utils from '../static/utils'
import VueResource from 'vue-resource'
import axios from 'axios'
import store from './store/index'

Vue.prototype.$utils = utils
Vue.prototype.$axios = axios
Vue.use(VueResource)
// Vue.use(axios) 不能使用这种方法来使用axios  axios不是vue插件

Vue.config.productionTip = false
Vue.prototype.$eventHub = Vue.prototype.$eventHub || new Vue()
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
